package ink.charon.novel.entity;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 小说表(Book)表实体类
 *
 * @author Pluto
 * @since 2021-08-18 13:36:27
 */
@SuppressWarnings("serial")
public class Book extends Model<Book> {
    //主键
    private Long id;
    //作品方向，0：男频，1：女频'
    private Byte workDirection;
    //分类ID
    private Integer catId;
    //分类名
    private String catName;
    //列表页书名
    private String listBookName;
    //书籍详情页URL
    private String detailUrl;
    //列表页书籍描述
    private String listBookDesc;
    //列表页书籍作者
    private String listBookAuthor;
    //列表页书籍图片
    private String listPicUrl;
    //列表页书籍状态
    private Byte listBookStatus;
    //列表页书籍状态规则
    private String listBookStatusRule;
    //列表页书籍字数
    private String listBookWordCount;
    //列表页最后更新时间
    private Date listLastUpdateTime;
    //列表页书籍总点击数
    private String listVisitCount;
    //列表页显示的周点击
    private String listWeekClick;
    //列表页显示的月点击
    private String listMonthClick;
    //列表页显示的目录URL
    private String listIndexUrl;
    //列表页显示的最后章节
    private String listLastChapter;
    //列表页显示的最后章节url
    private String listLastChapterUrl;
    //小说名(详情页)
    private String detailBookName;
    //小说封面(详情页)
    private String detailPicUrl;
    //作者id(详情页)
    private Long detailAuthorId;
    //作者名(详情页)
    private String detailAuthorName;
    //书籍描述(详情页)
    private String detailBookDesc;
    //目录url(详情页)
    private String indexUrl;
    //评分，预留字段(详情页)
    private Float score;
    //书籍状态，0：连载中，1：已完结(详情页)
    private Byte detailBookStatus;
    //点击量(详情页)
    private Long detailVisitCount;
    //总字数(详情页)
    private Integer detailWordCount;
    //评论数(详情页)
    private Integer detailCommentCount;
    //昨日订阅数（目录页）
    private Integer yesterdayBuy;
    //最新目录ID（目录页）
    private Long lastIndexId;
    //最新目录名（目录页）
    private String lastIndexName;
    //最新目录更新时间（目录页）
    private Date lastIndexUpdateTime;
    //是否收费，1：收费，0：免费（目录页）
    private Byte isVip;
    //爬虫源站ID
    private Integer spiderSourceId;
    //抓取的源站小说ID
    private String spiderBookId;
    //最后一次的抓取时间
    private Date spiderLastTime;
    //是否已停止更新，0：未停止，1：已停止
    private Byte spiderIsStop;
    //状态，0：入库，1：上架
    private Byte status;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Byte getWorkDirection() {
        return workDirection;
    }

    public void setWorkDirection(Byte workDirection) {
        this.workDirection = workDirection;
    }

    public Integer getCatId() {
        return catId;
    }

    public void setCatId(Integer catId) {
        this.catId = catId;
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    public String getListBookName() {
        return listBookName;
    }

    public void setListBookName(String listBookName) {
        this.listBookName = listBookName;
    }

    public String getDetailUrl() {
        return detailUrl;
    }

    public void setDetailUrl(String detailUrl) {
        this.detailUrl = detailUrl;
    }

    public String getListBookDesc() {
        return listBookDesc;
    }

    public void setListBookDesc(String listBookDesc) {
        this.listBookDesc = listBookDesc;
    }

    public String getListBookAuthor() {
        return listBookAuthor;
    }

    public void setListBookAuthor(String listBookAuthor) {
        this.listBookAuthor = listBookAuthor;
    }

    public String getListPicUrl() {
        return listPicUrl;
    }

    public void setListPicUrl(String listPicUrl) {
        this.listPicUrl = listPicUrl;
    }

    public Byte getListBookStatus() {
        return listBookStatus;
    }

    public void setListBookStatus(Byte listBookStatus) {
        this.listBookStatus = listBookStatus;
    }

    public String getListBookStatusRule() {
        return listBookStatusRule;
    }

    public void setListBookStatusRule(String listBookStatusRule) {
        this.listBookStatusRule = listBookStatusRule;
    }

    public String getListBookWordCount() {
        return listBookWordCount;
    }

    public void setListBookWordCount(String listBookWordCount) {
        this.listBookWordCount = listBookWordCount;
    }

    public Date getListLastUpdateTime() {
        return listLastUpdateTime;
    }

    public void setListLastUpdateTime(Date listLastUpdateTime) {
        this.listLastUpdateTime = listLastUpdateTime;
    }

    public String getListVisitCount() {
        return listVisitCount;
    }

    public void setListVisitCount(String listVisitCount) {
        this.listVisitCount = listVisitCount;
    }

    public String getListWeekClick() {
        return listWeekClick;
    }

    public void setListWeekClick(String listWeekClick) {
        this.listWeekClick = listWeekClick;
    }

    public String getListMonthClick() {
        return listMonthClick;
    }

    public void setListMonthClick(String listMonthClick) {
        this.listMonthClick = listMonthClick;
    }

    public String getListIndexUrl() {
        return listIndexUrl;
    }

    public void setListIndexUrl(String listIndexUrl) {
        this.listIndexUrl = listIndexUrl;
    }

    public String getListLastChapter() {
        return listLastChapter;
    }

    public void setListLastChapter(String listLastChapter) {
        this.listLastChapter = listLastChapter;
    }

    public String getListLastChapterUrl() {
        return listLastChapterUrl;
    }

    public void setListLastChapterUrl(String listLastChapterUrl) {
        this.listLastChapterUrl = listLastChapterUrl;
    }

    public String getDetailBookName() {
        return detailBookName;
    }

    public void setDetailBookName(String detailBookName) {
        this.detailBookName = detailBookName;
    }

    public String getDetailPicUrl() {
        return detailPicUrl;
    }

    public void setDetailPicUrl(String detailPicUrl) {
        this.detailPicUrl = detailPicUrl;
    }

    public Long getDetailAuthorId() {
        return detailAuthorId;
    }

    public void setDetailAuthorId(Long detailAuthorId) {
        this.detailAuthorId = detailAuthorId;
    }

    public String getDetailAuthorName() {
        return detailAuthorName;
    }

    public void setDetailAuthorName(String detailAuthorName) {
        this.detailAuthorName = detailAuthorName;
    }

    public String getDetailBookDesc() {
        return detailBookDesc;
    }

    public void setDetailBookDesc(String detailBookDesc) {
        this.detailBookDesc = detailBookDesc;
    }

    public String getIndexUrl() {
        return indexUrl;
    }

    public void setIndexUrl(String indexUrl) {
        this.indexUrl = indexUrl;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public Byte getDetailBookStatus() {
        return detailBookStatus;
    }

    public void setDetailBookStatus(Byte detailBookStatus) {
        this.detailBookStatus = detailBookStatus;
    }

    public Long getDetailVisitCount() {
        return detailVisitCount;
    }

    public void setDetailVisitCount(Long detailVisitCount) {
        this.detailVisitCount = detailVisitCount;
    }

    public Integer getDetailWordCount() {
        return detailWordCount;
    }

    public void setDetailWordCount(Integer detailWordCount) {
        this.detailWordCount = detailWordCount;
    }

    public Integer getDetailCommentCount() {
        return detailCommentCount;
    }

    public void setDetailCommentCount(Integer detailCommentCount) {
        this.detailCommentCount = detailCommentCount;
    }

    public Integer getYesterdayBuy() {
        return yesterdayBuy;
    }

    public void setYesterdayBuy(Integer yesterdayBuy) {
        this.yesterdayBuy = yesterdayBuy;
    }

    public Long getLastIndexId() {
        return lastIndexId;
    }

    public void setLastIndexId(Long lastIndexId) {
        this.lastIndexId = lastIndexId;
    }

    public String getLastIndexName() {
        return lastIndexName;
    }

    public void setLastIndexName(String lastIndexName) {
        this.lastIndexName = lastIndexName;
    }

    public Date getLastIndexUpdateTime() {
        return lastIndexUpdateTime;
    }

    public void setLastIndexUpdateTime(Date lastIndexUpdateTime) {
        this.lastIndexUpdateTime = lastIndexUpdateTime;
    }

    public Byte getIsVip() {
        return isVip;
    }

    public void setIsVip(Byte isVip) {
        this.isVip = isVip;
    }

    public Integer getSpiderSourceId() {
        return spiderSourceId;
    }

    public void setSpiderSourceId(Integer spiderSourceId) {
        this.spiderSourceId = spiderSourceId;
    }

    public String getSpiderBookId() {
        return spiderBookId;
    }

    public void setSpiderBookId(String spiderBookId) {
        this.spiderBookId = spiderBookId;
    }

    public Date getSpiderLastTime() {
        return spiderLastTime;
    }

    public void setSpiderLastTime(Date spiderLastTime) {
        this.spiderLastTime = spiderLastTime;
    }

    public Byte getSpiderIsStop() {
        return spiderIsStop;
    }

    public void setSpiderIsStop(Byte spiderIsStop) {
        this.spiderIsStop = spiderIsStop;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", workDirection=" + workDirection +
                ", catId=" + catId +
                ", catName='" + catName + '\'' +
                ", listBookName='" + listBookName + '\'' +
                ", detailUrl='" + detailUrl + '\'' +
                ", listBookDesc='" + listBookDesc + '\'' +
                ", listBookAuthor='" + listBookAuthor + '\'' +
                ", listPicUrl='" + listPicUrl + '\'' +
                ", listBookStatus=" + listBookStatus +
                ", listBookStatusRule='" + listBookStatusRule + '\'' +
                ", listBookWordCount='" + listBookWordCount + '\'' +
                ", listLastUpdateTime=" + listLastUpdateTime +
                ", listVisitCount='" + listVisitCount + '\'' +
                ", listWeekClick='" + listWeekClick + '\'' +
                ", listMonthClick='" + listMonthClick + '\'' +
                ", listIndexUrl='" + listIndexUrl + '\'' +
                ", listLastChapter='" + listLastChapter + '\'' +
                ", listLastChapterUrl='" + listLastChapterUrl + '\'' +
                ", detailBookName='" + detailBookName + '\'' +
                ", detailPicUrl='" + detailPicUrl + '\'' +
                ", detailAuthorId=" + detailAuthorId +
                ", detailAuthorName='" + detailAuthorName + '\'' +
                ", detailBookDesc='" + detailBookDesc + '\'' +
                ", indexUrl='" + indexUrl + '\'' +
                ", score=" + score +
                ", detailBookStatus=" + detailBookStatus +
                ", detailVisitCount=" + detailVisitCount +
                ", detailWordCount=" + detailWordCount +
                ", detailCommentCount=" + detailCommentCount +
                ", yesterdayBuy=" + yesterdayBuy +
                ", lastIndexId=" + lastIndexId +
                ", lastIndexName='" + lastIndexName + '\'' +
                ", lastIndexUpdateTime=" + lastIndexUpdateTime +
                ", isVip=" + isVip +
                ", spiderSourceId=" + spiderSourceId +
                ", spiderBookId='" + spiderBookId + '\'' +
                ", spiderLastTime=" + spiderLastTime +
                ", spiderIsStop=" + spiderIsStop +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
